package com.mx.mg.idempotence.service;

import javax.servlet.http.HttpServletRequest;

/**
 * @Auther: ghm
 * @Date: 2021/09/02/15:58
 * @Description:
 */
public interface TokenService {

    /**
     * 创建Tonken
     *
     * @return
     */
    String createToken();



    /**
     * 校验Tonken
     *
     * @param request
     * @return
     * @throws Exception
     */
    boolean checkToken(HttpServletRequest request);
}
